<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>

<head>
    <title>管理系统</title>

<%--    <script src="${pageContext.request.contextPath}/js/jquery-2.1.0.js"></script>--%>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css">
    <script src="${pageContext.request.contextPath}/layui/layui.js"></script>

</head>

<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">管理系统</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!-- 移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </li>


        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="${pageContext.request.contextPath}/imgs/tou.jpg" class="layui-nav-img">
                    ${sessionScope.user.username}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="/logout">退出</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:;">
                    <i class="layui-icon layui-icon-more-vertical"></i>
                </a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">影厅管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/room" target="content"  ><i style="display: block;margin-left: 20px;">影厅</i></a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;">影片管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/film" target="content" ><i style="display: block;margin-left: 20px;">影片</i></a></dd>
                        <dd><a href="3.html" target="content" ><i style="display: block;margin-left: 20px;">即将上映</i></a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;">影院管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/slice" target="content"><i style="display: block;margin-left: 20px;">排片信息</i></a></dd>
                    </dl>
                </li>
            </ul>
        </div>

    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;height:100%">
            <iframe name="content" width="100%" height="100%" frameborder="0"/>
        </div>
    </div>


</div>

<script>
    //JS
    layui.use(['element', 'layer', 'util'], function () {

        var element = layui.element;
        var layer = layui.layer;
        var util = layui.util;
        var $ = layui.jquery;

        //头部事件
        util.event('lay-header-event', {
            //左侧菜单事件
            menuLeft: function (othis) {
                layer.msg('展开左侧菜单的操作', {
                    icon: 0
                });
            },
            menuRight: function () {
                layer.open({
                    type: 1,
                    content: '<div style="padding: 15px;">处理右侧面板的操作</div>',
                    area: ['260px', '100%'],
                    offset: 'rt' //右上角
                    ,
                    anim: 5,
                    shadeClose: true
                });
            }
        });

    });
</script>
</body>

</html>
